package httpdGet;

import java.io.*;
import java.net.*;

public class HttpdConnection extends Thread {

    Socket s;

    HttpdConnection(Socket s) {
        this.s = s;
    }

    @Override
    public void run() {
        try {
            BufferedReader i = new BufferedReader(new InputStreamReader(s.getInputStream()));
            DataOutputStream o = new DataOutputStream(s.getOutputStream());

            while (i.ready()) {
                String string = i.readLine();
                System.out.println("Recived " + string);
            }
            s.close();
        } catch (Exception ex) {
        }
    }
}
